Method releases any resources allocated within the appender , such as file handlers , network connections , and so on 方法釋放appender中分配的任何資源,比如文件句柄、網(wǎng)絡(luò)連接,等等。
If the platform libraries provide finalizers for cleaning up open file handlers , which greatly reduces the risk of forgetting to close them explicitly , why aren t finalizers used more often 如果說平臺(tái)庫提供終結(jié)器來清除打開的文件句柄,這大大降低了忘記顯式地關(guān)閉這些句柄的風(fēng)險(xiǎn),為什么不更多地使用終結(jié)器呢?